source = """'We always 1knew 2our 3daughter Kendall was going be a performer of some sort. She entertained people in our small town by putting on shows on our front porch when she was only three or four. Blonde-haired, blue-eyed, and beautiful, she sang like a little angel and mesmerized1 everyone."""

strLower = ''
strUpper = ''
strDigit = ''
strOther = ''
for i in source:
    if i.islower():
        strLower += i
    elif i.isupper():
        strUpper += i
    elif i.isdigit():
        strDigit += i
    else:
        strOther += i

result = ['', strLower, strUpper, strDigit, strOther]

menu = """\
Welcom
1 - lower letters 
2 - upper letters
3 - digits
4 - other
exit - exit
"""
while True:
    print('-' * 32)
    print(menu)
    cmdRaw = input('Your choice: ').strip()
    if 'exit' == cmdRaw:
        print('Bye!')
        break
    try:
        cmd = int(cmdRaw)
    except ValueError:
        print('Wrong choice, plz choose again.')
        continue
    if cmd < 1 or cmd > 5:
        print('Wrong choice, plz choose again.')
        continue
    else:
        print(result[cmd])
